package com.ry.project.login.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ry.project.login.bean.Menu;
import com.ry.project.login.bean.ParamsData;
import com.ry.project.login.bean.User;
import com.ry.project.login.mapper.UserMapper;

@Service
public class UserServiceImpl implements IUserService {

	@Autowired
	private UserMapper dao;
	
	public User selectUserByUsername(ParamsData pd) {
		return dao.selectUserByUsername(pd);
	}
	
	public User selectUserRoleByUsername(ParamsData pd) {
		return dao.selectUserRoleByUsername(pd);
	}
	
	public List<Menu> selectMenuByUsername(ParamsData pd){
		return dao.selectMenuByUsername(pd);
	}
	
	
}
